package top.tenebrous.termbor.rpc.provider.common;

import org.springframework.stereotype.Service;
import top.tenebrous.termbor.rpc.common.annotation.RpcService;
import top.tenebrous.termbor.rpc.api.HelloService;

/**
 * @program: jestic-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-10 08:54
 **/

@RpcService(
    interfaceClass = HelloService.class,
    interfaceClassName = "top.tenebrous.termbor.rpc.api.HelloService",
    version = "1.0.0", group = "jestic"
)
@Service
public class HelloServiceImpl implements HelloService {

    public String sayHello(String name) {
        System.out.println("调用sayHello入参:"+ name);
        return "Hello, " + name;
    }

}
